<?php
if ((intval($_GET['height']) - 117) >= 391){
 //var_dump(intval($_GET['height']) - 117);
  $height = intval($_GET['height']) - 157;
}else{
  $height = intval($_GET['height']) - 57;
}

?>
<iframe id="iframe_max" name="iframe_max" src="index.php?aid=<?php echo $_GET['aid'] ?>" width="98%" height="<?php echo $height ?>" frameborder="no" scrolling="auto"></iframe>